using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
using UnityEngine.ResourceManagement.ResourceProviders;
using UnityEngine.SceneManagement; // Required for scene management

public class ChangeScene : MonoBehaviour
{

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.U)){
            
            AsyncOperationHandle<SceneInstance> sceneLoader = Addressables.LoadSceneAsync("MakeGurouce", LoadSceneMode.Single);
            
        }
        if (Input.GetKeyDown(KeyCode.C)){
            //SceneManager.LoadScene("Init");
            AsyncOperationHandle<SceneInstance> sceneLoader = Addressables.LoadSceneAsync("Init", LoadSceneMode.Single);
            
        }
        if (Input.GetKeyDown(KeyCode.P)){
            AsyncOperationHandle<SceneInstance> sceneLoader = Addressables.LoadSceneAsync("Main", LoadSceneMode.Single);
            
        }
    }
}
